﻿#include "Light01.h"
#include <qopenglcontext.h>
#include <qopenglfunctions.h>

Light01::Light01(QWidget* parent)
	:QOpenGLWidget(parent)
{

}

void Light01::initializeGL()
{
	context()->functions()->initializeOpenGLFunctions();

	shader.addShaderFromSourceFile(QOpenGLShader::Vertex, u8"Light01.vert");
	shader.addShaderFromSourceFile(QOpenGLShader::Fragment, u8"Light01.frag");
	shader.link();
}
